package com.zy.springbootmybatis.web;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;
 /**
 *@Author: zy 690748807@qq.com
 * @Param: 
 * @return: 
 * @Date: 2024/3/24
 * @Description: 监听器 
 */
@WebListener
public class HelloListener implements ServletContextListener {
    @Override
    public void contextDestroyed(ServletContextEvent arg0) {
        System.out.println("应用销毁了....HelloListener");
    }

    @Override
    public void contextInitialized(ServletContextEvent arg0) {
        System.out.println("应用启动了....HelloListener");
    }
}